package com.huqiwen.dom4j;

import org.dom4j.Document;
import org.dom4j.DocumentHelper;
import org.dom4j.Element;

public class CreateDomTest {
	public static void main(String[] args) {
		Document document = DocumentHelper.createDocument();
		Element root = document.addElement("root");
		Element file = root.addElement("测试");
		file.addText("5");
		String string = document.asXML();
		System.out.println(string);
	}
}
